<div id="content">
	<div class="row s_page_title">
		<sa-big-breadcrumbs [items]="['日志信息管理','矩阵推送日志']" icon="fa fa-tag" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<sa-widgets-grid>
		<div class="s_table">
			<div sa-widget [editbutton]="false" color="darken" class="clearfix">
				<header><span class="widget-icon"> <i class="fa fa-table"></i> </span><h2>矩阵推送日志</h2></header>
				<div>
					<div class="widget-body no-padding">
						<div class="page-header clearfix s_table_opreation">
							<div class="left page-header-btn">
								<div class="top_module top_module_box">
									<span class="module_text">车牌号码</span>
									<div class="s_hover_box">
										<select   class="select2"  id="carNumberSelect2">
											<option value=''></option>
										</select>
										<div class="s_del_icon" (click)='del_carNumber()'>x</div>
									</div>
								</div>
								<div class="top_module">
									<span class="module_text">状态类型</span>
									<select name="type" id="" class="module_inp" [(ngModel)]="status">
										<option value="">全部</option>
										<option value="0">空车拍照</option>
										<option value="1">重车拍照</option>
									</select>
								</div>
								<div class="selectDate top_module">
									<table-select-date [notInit]='true' (outerTime)="getSelectTableTime($event)" ></table-select-date>
								</div>
								
								<button type="button" class="btn btn-primary" (click)="search_data()">查询</button>
								<!-- <button type="button" class="btn btn-primary" (click)="exportData()">导出</button> -->
							</div>
							<div class="right top-search">
								<input class="search-input"[(ngModel)]='searchKey' (change)="table_search()" placeholder="车牌号 设备id..." type="text">
								<span class="top-search-box">
							        <button class="top-search-btn" (click)="table_search()" type="button"> <i class="fa fa-search"></i></button>
							    </span>
							</div>
						</div>
						<div class="table_scroll">
							<table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
								<thead>
									<tr>
										<th>车牌号码</th>
										<th>设备ID</th>
										<th>订单编号</th>
										<th>状态</th>
										<th>创建时间</th>
										<th>更新时间</th>
										<th>拍照时间</th>
										<th>图片</th>
									</tr>
								</thead>
								<tbody>
									<tr *ngFor="let row of resultTableData" >
										<td>{{row.carNumber}}</td>
										<td>{{row.deviceId}}</td>
										<td>{{row.orderCode}}</td>
										<td>
											<span *ngIf="row.status == 0">空车拍照</span>
											<span *ngIf="row.status == 1">重车拍照</span>
										</td>
										<td>{{row.createTime}}</td>
										<td>{{row.updateTime}}</td>
										<td>{{row.takeTime}}</td>
										<td><button type="button" (click)="open_img(row,ImgModal)" *ngIf="row.url">查看</button></td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="table-fix clearfix">
							<paginator [totalRecords]="totalCount"
						           [rows]="pageSize"
						           [currentPage]="curPage - 1"
						           (onPageChange)="paginate($event)">
							</paginator>
							<button type="button" class="btn default refresh_btn" (click)="refresh()"><i class="fa fa-refresh"></i></button>
						</div>
					</div>
				</div>
			</div>
		<!-- 图片查看   弹窗-->
		<section bsModal #ImgModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
			<div class="modal-dialog modal-lg" style="width: 1000px;">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" (click)="imgClose(ImgModal)" aria-label="Close"><span aria-hidden="true">&times;</span></button>     
						<h4 class="modal-title">图片</h4>
					</div>
					<div class="modal-body">
						<div class="row form-horizontal imagesInfo">
							<div class="imagesList" >
								<div *ngFor="let item of imgInfo" class="imagesList-cont">
									<div class="imgList">
										<div class="imgCont">
											<img class="imgSrc" [src]="item" alt="" (click)="bigimg(ImgBigModal,item)"/>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</section>
		<!-- 图片查看 弹窗end-->
		</div>
	</sa-widgets-grid>
	<!-- 图片放大查看   弹窗-->
	<section bsModal #ImgBigModal="bs-modal" class="modal fade imgView" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
		<!-- <div class="closeImg" (click)="CloseBigImg(ImgBigModal)"></div> -->
		<div class="modal-content modal-imgContent" (click)="CloseBigImg(ImgBigModal)" >
			<img [src]="bigImg" />
		</div>
	</section>
	<!-- 图片放大查看 弹窗end-->
</div>